import {Component} from "@angular/core";

@Component({
  selector: 'click-me',
  template: `
    <button #box (click)="onClick()">click-me</button>
    {{value}}
  `
})
export class ClickMeComponent{
  value = '';

  onClick(){
    this.value = "Hello word";
  }
}
